//
//  CustomHomeTableViewCell1.m
//  LaiKeDaoClient
//
//  Created by zouzhisheng on 15/9/30.
//  Copyright © 2015年 LKD. All rights reserved.
//

#import "CustomHomeTableViewCell1.h"

@implementation CustomHomeTableViewCell1

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)loadData:(KXJson*)json type:(NSInteger)type{
    KXJson *tempJson=[json getJsonForKey:@"data"];
    [tempJson getStringForKey:@""];
    switch (type) {
        case 0:
        {
            self.iconImageView.image=[UIImage imageNamed:@"ic_message"];
            self.contentLabel.text=@"系统消息";
            [self.numBt setTitle: [tempJson getStringForKey:@"system_ew"] forState:UIControlStateNormal];
        }
            break;
        case 1:
        {
            self.iconImageView.image=[UIImage imageNamed:@"ic_add"];
            self.contentLabel.text=@"加号申请";
            [self.numBt setTitle: [tempJson getStringForKey:@"plus_application"] forState:UIControlStateNormal];
        }
            break;
        case 2:
        {
            self.iconImageView.image=[UIImage imageNamed:@"ic_apply"];
            self.contentLabel.text=@"项目申请";
            [self.numBt setTitle: [tempJson getStringForKey:@"project_application"] forState:UIControlStateNormal];
        }
            break;
        case 3:
        {
            self.iconImageView.image=[UIImage imageNamed:@"ic_apply-pass"];
            self.contentLabel.text=@"申请通过";
            [self.numBt setTitle: [tempJson getStringForKey:@"application_pass"] forState:UIControlStateNormal];
        }
            break;
        default:
            break;
    }
}
@end
